<!DOCTYPE html>
<html lang="en">
	<head>
	    <title>资产信息查询</title>
	    <meta charset="UTF-8" />
	    <meta name="Author" content="" />
	    <meta name="Keywords" content="" />
	    <meta name="Description" content="" />
	    
	    <!-- 样式库 -->
	    <link rel="stylesheet" href="../../../js/bootstrap/themes/default/bootstrap.css" />
	    <link rel="stylesheet" href="../../../js/jquery-easyui-1.5/themes/bootstrap/validatebox.css" />
	    <link rel="stylesheet" href="../../../js/jquery-easyui-1.5/themes/bootstrap/tooltip.css" />
	    <link rel="stylesheet" href="../../../css/jquery.select2.css" />
	    <link rel="stylesheet" href="../../../css/jquery.select2-bootstrap.css" />
	    <link rel="stylesheet" href="../../../css/jquery.datetimepicker.css" />
	    <link rel="stylesheet" href="../../../js/bootstrap/themes/default/jquery.mCustomScrollbar.css" />
	    <link rel="stylesheet" href="../../../js/prettyphoto/css/prettyPhoto.css" />
	    
	    <!-- 插件库 -->
	    <script src="../../../js/common/package.js"></script>
		<script src="../../../js/common/url.js"></script>
		<script src="../../../js/common/json2.js"></script>	
		<script src="../../../js/common/jquery-1.11.3.min.js"></script>		
		<script src="../../../js/bootstrap/bootstrap.js"></script>
		<script src="../../../js/bootstrap/plugins/bootstrap-paginator.js"></script>
		<script src="../../../js/jquery-easyui-1.5/jquery.easyui.min.js"></script>
		<script src="../../../js/ztree/js/jquery.ztree.all.min.js"></script>
		<script src="../../../js/common/jquery.select2.js"></script>
		<script src="../../../js/common/jquery.datetimepicker.js"></script>
		<script src="../../../js/bootstrap/plugins/jquery.mCustomScrollbar.js"></script>
		<script src="../../../js/prettyphoto/js/jquery.prettyPhoto.js"></script>	
		
		<!-- 业务库 -->
		<script src="../../../js/common/base.js"></script>
		<script src="../../../js/common/datagrid2.js"></script>
		<script src="../../../js/common/tree.js"></script>
		<script src="../../../js/common/formatter.js"></script>	    
	    <script src="../../../js/each/cfm/requestFunds/requestFunds.js"></script>
	    
		
		<!-- 页面样式 -->
		<style type="text/css">
			body {
				font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif !important;
				background:#eee url("../../../img/back.png") repeat;
			}
			.container-fluid {
				padding:5px;
			}
			.left-part {
				height:800px;
			}
			.modal-form {
				margin:5px;
				height:600px;
			}
			.text-left {
				text-align: left;
			}
			.text-center {
				text-align: center;
			}
			.text-right {
				text-align: right;
			}
			.text-muted {
				font-weight: bold;
			}
			.text-stress {
				font-weight: bold;
			}
			.item-title {
				background-color: #f5f5f5;
			}
			.float-left {
				float: left;
				margin-left: 5px;
			}
		</style>
	    
	</head>
	<body>
	
		<div class="container-fluid">
			<div class="row">				
				<div class="col-md-12">
					<div class="panel panel-info">
						<div class="panel-heading">
							<h4 class="panel-title">查询信息</h4>
					  	</div>
					  	<div class="panel-body">	
					  		<form id="searchForm" class="form-inline">
							  	<div class="form-group">
							    	<label class="form-label">项目名称:</label>
							  	</div>
							  	<div class="form-group">
							    	<input name="projectName" type="text" class="form-control input-sm" placeholder="请输入项目名称">
							  	</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<div class="form-group">
							    	<label class="form-label">机构名称: </label>
							  	</div>
							  	<div class="form-group">
							    	<select id="query_merch_name" name="merchName" class="form-control" style="width: 200px">
								    </select>
							  	</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<div class="form-group">
							    	<label class="form-label">订单号:</label>
							  	</div>
							  	<div class="form-group">
							    	<input name="orderId" type="text" class="form-control input-sm" placeholder="请输入订单号">
							  	</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<div class="form-group">
							    	<label class="form-label">资金来源:</label>
							  	</div>
							  	<div class="form-group">
							    	<select id="query_fund_source" name="sourcesFunding" class="form-control" style="width: 200px">
							    	</select>
							  	</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<div class="form-group">
							    	<label class="form-label">期数:</label>
							  	</div>
							  	<div class="form-group">
							    	<select id="query_stage_number" name="orderItems" class="form-control" style="width: 200px">
								    </select>
							  	</div>	
							  	<br/>
							  	<div class="form-group">
							    	<label class="form-label">订单日期:</label>
							  	</div>
							  	<div class="form-group">
							    	<input name="startTime" id='query_start_order_time' type="text" class="form-control input-sm" placeholder="请输入开始时间">
							  	</div>
							  	<div class="form-group">
							    	<label class="form-label">至</label>
							  	</div>
							  	<div class="form-group">
							    	<input name="endTime" id='query_end_order_time' type="text" class="form-control input-sm" placeholder="请输入结束时间">
							  	</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<button id="btn-search" type="button" class="btn btn-default btn-sm">查询</button>
								<button id="btn-reset" type="button" class="btn btn-default btn-sm">重置</button>   							
							</form>	  												 	
					  	</div>
					</div>
					<div class="panel panel-info">
						<div class="panel-heading">
                            <h3 class="panel-title">资产信息列表</h3>
                        </div>
                        <div class="panel-body">
                            <form id="listForm">                                
                                <button id="btn-update" type="button" class="btn btn-warning btn-sm">资产分配</button>
                            </form>
                        </div>
						<table id='datagrid' class="table table-striped table-bordered table-hover table-condensed ">
						    <thead>
						    	<tr>
						    		<th field="ck"></th>
                                    <th field="orderId" idField="true" hidden="true"></th>
						    		<th field="rn">序号</th>	
							    	<th field="projectName">项目名称</th>		    		
							    	<th field="merchName">机构名称</th>						    	
							    	<th field="realName">借款人</th>
							    	<th field="orderId">订单号</th>
							    	<th field="orderAmt" formatter = "Formatter.money(val)">金额</th>
							    	<th field="planFullName">产品方案</th>
							    	<th field="createTime"  formatter = "Formatter.dateFund(val)">订单日期</th>
							    	<th field="orderItems">期数</th>
							    	<th field="leftItems">剩余期数</th>
							    	<th field="sourcesFunding"  formatter="Formatter.parseCustomerType(val, 'FUND_SOURCE')">资金来源</th>
						    	</tr>
						    </thead>
						    <tbody></tbody>
						</table>
					  	<div class="panel-footer">
							<div id="paginator"></div>
						</div>
					</div>
				</div>
			</div>		 	
		</div>
		

		<div id="update-win" class="modal fade" role="dialog" aria-labelledby="update-win-label" aria-describedby="……">
			<div class="modal-dialog" role="document" style="width:850px;">
		    	<div class="modal-content">
		      		<div class="modal-header">
		      		
		        		<h5 class="modal-title" id="update-win-label">新建资产分配</h5>
		      		</div>
		      		<div>
		      		<div class="panel-body">
		      		<form id="proForm" class="form-inline">
							  	<div class="form-group">
							    	<label class="form-label">项目名称</label>
							  	</div>
							  	<div class="form-group">
							    	<input name="orderName" id="orderName" type="text" class="form-control input-sm" style="width:400px" readonly>
							  	</div>
					</form>
					  	</div>
		      		</div>
		      		<ul class="nav nav-tabs">
					<li class="active"><a href="#requestMessage"  data-toggle="tab">资产分配信息</a></li>
					<li><a href="#orderMessage" data-toggle="tab">订单信息</a></li>
					<li><a href="#projectMessage" data-toggle="tab">项目信息</a></li>
					</ul>
					<div  class="tab-content" >
					<div class="tab-pane fade in active" id="requestMessage">
					
	      			<div class="modal-form">
	      				<form id="updateForm" class="form-horizontal">
	      				<input id="horderNo" name="orderId" type="text" class='hidden' />
							<div class="form-group">
				    			<label class="col-sm-2 control-label">项目期限</label>
				    			<div class="col-sm-4">
				    				<input name="orderItems" type="text" class="form-control input-sm" readonly>
				    			</div>
				    			<label class="col-sm-2 control-label">剩余期数</label>
				    			<div class="col-sm-4">
				      				<input name="leftitems" type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>	
				  				
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">金额</label>
				    			<div class="col-sm-4">
				    			    <input name="orderAmt" id='orderAmt' type="text" class="form-control input-sm easyui-validatebox" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">订单申请日期</label>
				    			<div class="col-sm-4">
				    			    <input name="orderTimes" id='orderTimes' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">债权人姓名</label>
				    			<div class="col-sm-4">
								    <input id="creditName" name="creditName" class="form-control" readonly />
				    			</div>
				    			<label class="col-sm-2 control-label">债权人身份证号</label>
				    			<div class="col-sm-4">
				    			    <input name="creditCardNo" id='creditCardNo' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>	
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">债权人银行卡号</label>
				    			<div class="col-sm-4">
				    			    <input name="creditBankCard" id='creditBankCard' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">债权人开户银行</label>
				    			<div class="col-sm-4">
				    			    <input name="creditBank" id='creditBank' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">债权人手机号</label>
				    			<div class="col-sm-4">
				    			    <input name="creditPhone" id='creditPhone' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">担保人</label>
				    			<div class="col-sm-4">
				    			    <input name="guarantee" id='guarantee' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">担保法人</label>
				    			<div class="col-sm-4">
				    			    <input name="guaranteeName" id='guaranteeName' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">实际借款人</label>
				    			<div class="col-sm-4">
				    			    <input name="realName" id='realName' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">实际借款人身份证号</label>
				    			<div class="col-sm-4">
				    			    <input name="idCard" id='idCard' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">实际借款人手机</label>
				    			<div class="col-sm-4">
				    			    <input name="acctMobile" type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">本次请款期数</label>
				    			<div class="col-sm-4">
				    			    <select id="requestTimes" name="requestTimes" class="form-control input-sm easyui-validatebox" required="required" >
				    			    	
								    </select>
				    			</div>
				    			<label class="col-sm-2 control-label">本次请款金额</label>
				    			<div class="col-sm-4">
				    			    <input name="orderAmt" id='orderAmt' type="text" oninput='IQB.orderRevise.cal()' class="form-control input-sm easyui-validatebox" data-options="required:true, validType:['money']" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">标的结束时间</label>
				    			<div class="col-sm-4">
				    			    <input id="deadline" name="deadline" type="text" class="form-control input-sm easyui-validatebox" required="required" />
								  
				    			</div>
				    			<label class="col-sm-2 control-label">预计放款时间</label>
				    			<div class="col-sm-4">
				    			    <input name="plantime" id='plantime' type="text" class="form-control input-sm easyui-validatebox" required="required"/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">资金来源</label>
				    			<div class="col-sm-4">
				    			    <select id="query2_fund_source" name="fundSource" class="form-control input-sm easyui-validatebox" required="required" >
								    </select>
				    			</div>
				    		</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">备注</label>
				    			<div class="col-sm-10">
				    			    <input name="desc" id='desc' type="text" class="form-control input-sm"/>
				    			</div>
				  			</div>
						</form>
	      			</div>	
	      			</div>	
	      			 <div class="tab-pane fade" id="orderMessage">
	      				<div class="modal-form">
	      				<form id="orderForm" class="form-horizontal">
	      				<div class="form-group">
				    			<label class="col-sm-2 control-label">机构名称</label>
				    			<div class="col-sm-4">
				    				<input name="merchName" id='merchName' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  		</div>	
				  		 	
				  		<div class="form-group">
				    			<label class="col-sm-2 control-label">姓名</label>
				    			<div class="col-sm-4">
				    				<input name="contacts" id='contacts' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">手机号</label>
				    			<div class="col-sm-4">
				      				<input name="merchPhone" id="merchPhone" type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">业务类型</label>
				    			<div class="col-sm-4">
				    				<select name="riskType" id='riskType' class="form-control input-sm  easyui-validatebox" readonly>
				    				<option value='1'>集团公司</option>
				    			    <option value='2' >分公司</option>
				    			    <option value='3' >加盟商</option>
				    				</select>
				    			</div>
				    			<label class="col-sm-2 control-label">订单号</label>
				    			<div class="col-sm-4">
				      				<input name="orderId" id="orderId" type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">车辆总价</label>
				    			<div class="col-sm-4">
				    				<input name="orderAmt" id='orderAmt' type="text" class="form-control input-sm" readonly/>
				    			</div>
				    			<label class="col-sm-2 control-label">预付款</label>
				    			<div class="col-sm-4">
				      				<select id="chargeWay" name="chargeWay" class="form-control easyui-validatebox" required="required" readonly>
				    			        <option value='1'>线下收取</option>
				    			        <option value='0' >线上收取</option>
								    </select>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-2 control-label">产品方案</label>
				    			<div class="col-sm-4">
				    				<input name="productPlan" id='productPlan' type="text" class="form-control input-sm" readonly/>
				    			</div>
				  			</div>
				  			<table class="table table-bordered">
						    <tbody>
						    	<tr style="text-align: center;">
						    		<td><span class="text-muted">首付款合计（元）</span></td>						    		
							    	<td><span class="text-muted">首付（元）</span></td>						    	
							    	<td><span class="text-muted">保证金（元）</span></td>
							    	<td><span class="text-muted">服务费（元）</span></td>
							    	<td><span class="text-muted">上收息（元）</span></td>							    	
							    	<td><span class="text-muted">期数(月)</span></td>
							    	<td><span class="text-muted">月供（元）</span></td>
					    		</tr>
					    		<tr style="text-align: center;">
					    			<td><span id="preAmount" class="text-muted"></span></td>						    		
							    	<td><span id="downPayment" class="text-muted"></span></td>						    	
							    	<td><span id="margin" class="text-muted"></span></td>
							    	<td><span id="serviceFee" class="text-muted"></span></td>
							    	<td><span id="feeAmount" class="text-muted"></span></td>							    	
							    	<td><span id="orderItems" class="text-muted"></span></td>
							    	<td><span id="monthInterest" class="text-muted"></span></td>
						    	</tr>
						    </tbody>
						</table>		
	      				</form>
	      				</div>
	      			 </div>
	      			  <div role="tabpanel" class="tab-pane" id="projectMessage">
	      			  <div class="modal-form">
	      			  <div class="panel panel-default">
							<table class="table table-bordered">
						    <tbody>
						    	<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">借款及担保合同资料(水印版)</span></td>						    	
							    	<td id="td-1" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">借款及担保合同资料(完整版)</span></td>						    	
							    	<td id="td-2" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">车辆评估照片及车辆检验表</span></td>						    	
									<td id="td-3" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">项目Logo图片</span></td>						    	
							    	<td id="td-4" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">客户信息照片</span></td>						    	
							    	<td id="td-6" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">合同签署照片</span></td>						    	
							    	<td id="td-7" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">购车单据及车辆权证照片</span></td>						    	
							    	<td id="td-8" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
					    		<tr>						    		
							    	<td style="width: 15%; vertical-align: middle;"><span class="text-stress">GPS安装照片</span></td>						    	
							    	<td id="td-9" style="width: 85%; vertical-align: middle;"></td>
					    		</tr>
						    </tbody>
						</table>			
						</div>	 
						</div>
	      			</div> 
		      		<div class="modal-footer">
				        <button id="btn-save" type="button" class="btn btn-success btn-sm">保存</button>
				        <button id="btn-close" type="button" class="btn btn-default btn-sm">关闭</button>		        
		      		</div>
		    	</div>
		    	</div>
		  	
		</div>
		</div>	
	</body>
</html>